package com.android.delivery.entity;


import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class NetHome implements Parcelable {

    /**
     * 代签收数
     */
    public int waitSignQuantity;

    /**
     * 已揽件数
     */
    public int pickQuantity;

    /**
     * 即将送达数
     */
    public int transportingQuantity;

    /**
     * 达标数
     */
    public int standardQuantity;

    /**
     * 今日订单
     */
    public int todayQuantity;

    /**
     * 待支付
     */
    public int waitPayQuantity;

    /**
     * 待揽件
     */
    public int waitPickQuantity;

    /**
     * 本周配送
     */
    public int weekDeliveryQuantity;

    /**
     * 本周揽件
     */
    public int weekPickQuantity;

    /**
     * 本周件数
     */
    public int weekQuantity;

    /**
     * 配送进度
     */
    public List<NetHomePb> logisticsAwardTemplateList;

    protected NetHome(Parcel in) {
        waitSignQuantity = in.readInt();
        pickQuantity = in.readInt();
        transportingQuantity = in.readInt();
        standardQuantity = in.readInt();
        todayQuantity = in.readInt();
        waitPayQuantity = in.readInt();
        waitPickQuantity = in.readInt();
        weekDeliveryQuantity = in.readInt();
        weekPickQuantity = in.readInt();
        weekQuantity = in.readInt();
        logisticsAwardTemplateList = in.createTypedArrayList(NetHomePb.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(waitSignQuantity);
        dest.writeInt(pickQuantity);
        dest.writeInt(transportingQuantity);
        dest.writeInt(standardQuantity);
        dest.writeInt(todayQuantity);
        dest.writeInt(waitPayQuantity);
        dest.writeInt(waitPickQuantity);
        dest.writeInt(weekDeliveryQuantity);
        dest.writeInt(weekPickQuantity);
        dest.writeInt(weekQuantity);
        dest.writeTypedList(logisticsAwardTemplateList);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<NetHome> CREATOR = new Creator<NetHome>() {
        @Override
        public NetHome createFromParcel(Parcel in) {
            return new NetHome(in);
        }

        @Override
        public NetHome[] newArray(int size) {
            return new NetHome[size];
        }
    };
}
